export default {
  data () {
    return {
      showActivityPage: true
    }
  },
  beforeRouteEnter (to, from, next) {
    next((vm) => {
      if (to.path === `/home/activity/detail/${vm.$parent.$data.activityId}`) {
        vm.$data.showActivityPage = false
        vm.$parent.$data.showActivityPage = false
      } else {
        vm.$data.showActivityPage = true
        vm.$parent.$data.showActivityPage = true
      }
    })
  }
}
